home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / editintf.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  15.3 KB  |  406 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'EditIntf.pas' rev: 3.00
  6.  
  7. #ifndef EditIntfHPP
  8. #define EditIntfHPP
  9. #include <VirtIntf.hpp>
  10. #include <Windows.hpp>
  11. #include <SysUtils.hpp>
  12. #include <SysInit.hpp>
  13. #include <System.hpp>
  14.  
  15. //-- user supplied -----------------------------------------------------------
  16.  
  17. namespace Editintf
  18. {
  19. //-- type declarations -------------------------------------------------------
  20. #pragma pack(push, 1)
  21. struct TEditPos
  22. {
  23.     short Col;
  24.     int Line;
  25. } ;
  26. #pragma pack(pop)
  27.  
  28. #pragma pack(push, 1)
  29. struct TCharPos
  30. {
  31.     short CharIndex;
  32.     int Line;
  33. } ;
  34. #pragma pack(pop)
  35.  
  36. class DELPHICLASS TIEditReader;
  37. class PASCALIMPLEMENTATION TIEditReader : public Virtintf::TInterface 
  38. {
  39.     typedef Virtintf::TInterface inherited;
  40.     
  41. public:
  42.     virtual int __stdcall GetText(int Position, char * Buffer, int Count) = 0;
  43. public:
  44.     /* TInterface.Create */ __fastcall TIEditReader(void) : Virtintf::TInterface() { }
  45.     
  46. public:
  47.     /* TObject.Destroy */ __fastcall virtual ~TIEditReader(void) { }
  48.     
  49. };
  50.  
  51. class DELPHICLASS TIEditWriter;
  52. class PASCALIMPLEMENTATION TIEditWriter : public Virtintf::TInterface 
  53. {
  54.     typedef Virtintf::TInterface inherited;
  55.     
  56. public:
  57.     virtual bool __stdcall CopyTo(int Pos) = 0;
  58.     virtual bool __stdcall DeleteTo(int Pos) = 0;
  59.     virtual bool __stdcall Insert(char * Text) = 0;
  60.     virtual int __stdcall Position(void) = 0;
  61.     virtual TCharPos __stdcall GetCurrentPos(void) = 0;
  62.     __property TCharPos CurrentPos = {read=GetCurrentPos};
  63. public:
  64.     /* TInterface.Create */ __fastcall TIEditWriter(void) : Virtintf::TInterface() { }
  65.     
  66. public:
  67.     /* TObject.Destroy */ __fastcall virtual ~TIEditWriter(void) { }
  68.     
  69. };
  70.  
  71. class DELPHICLASS TIEditView;
  72. class PASCALIMPLEMENTATION TIEditView : public Virtintf::TInterface 
  73. {
  74.     typedef Virtintf::TInterface inherited;
  75.     
  76. public:
  77.     virtual TEditPos __stdcall GetPos(int Index) = 0;
  78.     virtual void __stdcall SetPos(int Index, const TEditPos Value) = 0;
  79.     virtual tagSIZE __stdcall GetViewSize(void) = 0;
  80.     virtual TCharPos __stdcall PosToCharPos(int Pos) = 0;
  81.     virtual int __stdcall CharPosToPos(const TCharPos CharPos) = 0;
  82.     virtual void __stdcall ConvertPos(bool EdPosToCharPos, TEditPos &EditPos, TCharPos &CharPos) = 0;
  83.     virtual void __stdcall GetAttributeAtPos(const TEditPos &EdPos, int &Element, int &LineFlag) = 0;
  84.     __property TEditPos CursorPos = {read=GetPos, write=SetPos, index=0};
  85.     __property TEditPos TopPos = {read=GetPos, write=SetPos, index=1};
  86.     __property tagSIZE ViewSize = {read=GetViewSize};
  87. public:
  88.     /* TInterface.Create */ __fastcall TIEditView(void) : Virtintf::TInterface() { }
  89.     
  90. public:
  91.     /* TObject.Destroy */ __fastcall virtual ~TIEditView(void) { }
  92.     
  93. };
  94.  
  95. enum TSyntaxHighlighter { shNone, shPascal, shC, shSQL, shQuery };
  96.  
  97. enum TBlockType { btInclusive, btLine, btColumn, btNonInclusive, btUnknown };
  98.  
  99. class DELPHICLASS TIEditorInterface;
  100. class PASCALIMPLEMENTATION TIEditorInterface : public Virtintf::TInterface 
  101. {
  102.     typedef Virtintf::TInterface inherited;
  103.     
  104. public:
  105.     virtual TIEditReader* __stdcall CreateReader(void) = 0;
  106.     virtual TIEditWriter* __stdcall CreateWriter(void) = 0;
  107.     virtual System::AnsiString __stdcall FileName(void) = 0;
  108.     virtual int __stdcall LinesInBuffer(void) = 0;
  109.     virtual bool __stdcall BufferModified(void) = 0;
  110.     virtual bool __stdcall MarkModified(void) = 0;
  111.     virtual TSyntaxHighlighter __stdcall SetSyntaxHighlighter(TSyntaxHighlighter SyntaxHighlighter) = 0
  112.         ;
  113.     virtual int __stdcall GetViewCount(void) = 0;
  114.     virtual TIEditView* __stdcall GetView(int Index) = 0;
  115.     virtual TIEditWriter* __stdcall CreateUndoableWriter(void) = 0;
  116.     virtual TCharPos __stdcall GetBlockAfter(void) = 0;
  117.     virtual TCharPos __stdcall GetBlockStart(void) = 0;
  118.     virtual TBlockType __stdcall GetBlockType(void) = 0;
  119.     virtual bool __stdcall GetBlockVisible(void) = 0;
  120.     virtual void __stdcall SetBlockAfter(const TCharPos Value) = 0;
  121.     virtual void __stdcall SetBlockStart(const TCharPos Value) = 0;
  122.     virtual void __stdcall SetBlockType(TBlockType Value) = 0;
  123.     virtual void __stdcall SetBlockVisible(bool Value) = 0;
  124.     __property TCharPos BlockStart = {read=GetBlockStart, write=SetBlockStart};
  125.     __property TCharPos BlockAfter = {read=GetBlockAfter, write=SetBlockAfter};
  126.     __property TBlockType BlockType = {read=GetBlockType, write=SetBlockType, nodefault};
  127.     __property bool BlockVisible = {read=GetBlockVisible, write=SetBlockVisible, nodefault};
  128. public:
  129.     /* TInterface.Create */ __fastcall TIEditorInterface(void) : Virtintf::TInterface() { }
  130.     
  131. public:
  132.     /* TObject.Destroy */ __fastcall virtual ~TIEditorInterface(void) { }
  133.     
  134. };
  135.  
  136. enum TPropertyType { ptUnknown, ptInteger, ptChar, ptEnumeration, ptFloat, ptString, ptSet, ptClass, 
  137.     ptMethod, ptWChar, ptLString, ptLWString, ptVariant };
  138.  
  139. class DELPHICLASS TIComponentInterface;
  140. typedef bool __stdcall (*TGetChildCallback)(void * Param, TIComponentInterface* ComponentInterface);
  141.     
  142.  
  143. class PASCALIMPLEMENTATION TIComponentInterface : public Virtintf::TInterface 
  144. {
  145.     typedef Virtintf::TInterface inherited;
  146.     
  147. public:
  148.     virtual System::AnsiString __stdcall GetComponentType(void) = 0;
  149.     virtual void * __stdcall GetComponentHandle(void) = 0;
  150.     virtual TIComponentInterface* __stdcall GetParent(void) = 0;
  151.     virtual bool __stdcall IsTControl(void) = 0;
  152.     virtual int __stdcall GetPropCount(void) = 0;
  153.     virtual System::AnsiString __stdcall GetPropName(int Index) = 0;
  154.     virtual TPropertyType __stdcall GetPropType(int Index) = 0;
  155.     virtual TPropertyType __stdcall GetPropTypeByName(const System::AnsiString Name) = 0;
  156.     virtual bool __stdcall GetPropValue(int Index, void *Value) = 0;
  157.     virtual bool __stdcall GetPropValueByName(const System::AnsiString Name, void *Value) = 0;
  158.     virtual bool __stdcall SetProp(int Index, const void *Value) = 0;
  159.     virtual bool __stdcall SetPropByName(const System::AnsiString Name, const void *Value) = 0;
  160.     virtual bool __stdcall GetChildren(void * Param, TGetChildCallback Proc) = 0;
  161.     virtual int __stdcall GetControlCount(void) = 0;
  162.     virtual TIComponentInterface* __stdcall GetControl(int Index) = 0;
  163.     virtual int __stdcall GetComponentCount(void) = 0;
  164.     virtual TIComponentInterface* __stdcall GetComponent(int Index) = 0;
  165.     virtual bool __stdcall Select(void) = 0;
  166.     virtual bool __stdcall Focus(void) = 0;
  167.     virtual bool __stdcall Delete(void) = 0;
  168. public:
  169.     /* TInterface.Create */ __fastcall TIComponentInterface(void) : Virtintf::TInterface() { }
  170.     
  171. public:
  172.     /* TObject.Destroy */ __fastcall virtual ~TIComponentInterface(void) { }
  173.     
  174. };
  175.  
  176. class DELPHICLASS TIFormInterface;
  177. class PASCALIMPLEMENTATION TIFormInterface : public Virtintf::TInterface 
  178. {
  179.     typedef Virtintf::TInterface inherited;
  180.     
  181. public:
  182.     virtual System::AnsiString __stdcall FileName(void) = 0;
  183.     virtual bool __stdcall FormModified(void) = 0;
  184.     virtual bool __stdcall MarkModified(void) = 0;
  185.     virtual TIComponentInterface* __stdcall GetFormComponent(void) = 0;
  186.     virtual TIComponentInterface* __stdcall FindComponent(const System::AnsiString Name) = 0;
  187.     virtual TIComponentInterface* __stdcall GetComponentFromHandle(void * ComponentHandle) = 0;
  188.     virtual int __stdcall GetSelCount(void) = 0;
  189.     virtual TIComponentInterface* __stdcall GetSelComponent(int Index) = 0;
  190.     virtual TIComponentInterface* __stdcall GetCreateParent(void) = 0;
  191.     virtual TIComponentInterface* __stdcall CreateComponent(TIComponentInterface* Container, const System::AnsiString 
  192.         TypeName, int X, int Y, int W, int H) = 0;
  193. public:
  194.     /* TInterface.Create */ __fastcall TIFormInterface(void) : Virtintf::TInterface() { }
  195.     
  196. public:
  197.     /* TObject.Destroy */ __fastcall virtual ~TIFormInterface(void) { }
  198.     
  199. };
  200.  
  201. enum TResHeaderValue { hvFlags, hvLanguage, hvDataVersion, hvVersion, hvCharacteristics };
  202.  
  203. class DELPHICLASS TIResourceEntry;
  204. class PASCALIMPLEMENTATION TIResourceEntry : public Virtintf::TInterface 
  205. {
  206.     typedef Virtintf::TInterface inherited;
  207.     
  208. public:
  209.     virtual char * __stdcall GetResourceType(void) = 0;
  210.     virtual char * __stdcall GetResourceName(void) = 0;
  211.     virtual bool __stdcall Change(char * NewType, char * NewName) = 0;
  212.     virtual bool __stdcall GetHeaderValue(TResHeaderValue HeaderValue, int &Value) = 0;
  213.     virtual bool __stdcall SetHeaderValue(TResHeaderValue HeaderValue, int Value) = 0;
  214.     virtual void * __stdcall GetData(void) = 0;
  215.     virtual int __stdcall GetDataSize(void) = 0;
  216.     virtual bool __stdcall SetDataSize(int NewSize) = 0;
  217.     virtual void * __stdcall GetEntryHandle(void) = 0;
  218. public:
  219.     /* TInterface.Create */ __fastcall TIResourceEntry(void) : Virtintf::TInterface() { }
  220.     
  221. public:
  222.     /* TObject.Destroy */ __fastcall virtual ~TIResourceEntry(void) { }
  223.     
  224. };
  225.  
  226. class DELPHICLASS TIResourceFile;
  227. class PASCALIMPLEMENTATION TIResourceFile : public Virtintf::TInterface 
  228. {
  229.     typedef Virtintf::TInterface inherited;
  230.     
  231. public:
  232.     virtual System::AnsiString __stdcall FileName(void) = 0;
  233.     virtual int __stdcall GetEntryCount(void) = 0;
  234.     virtual TIResourceEntry* __stdcall GetEntry(int Index) = 0;
  235.     virtual TIResourceEntry* __stdcall GetEntryFromHandle(void * EntryHandle) = 0;
  236.     virtual TIResourceEntry* __stdcall FindEntry(char * ResType, char * Name) = 0;
  237.     virtual bool __stdcall DeleteEntry(void * EntryHandle) = 0;
  238.     virtual TIResourceEntry* __stdcall CreateEntry(char * ResType, char * Name, Word Flags, Word LanguageId
  239.         , int DataVersion, int Version, int Characteristics) = 0;
  240. public:
  241.     /* TInterface.Create */ __fastcall TIResourceFile(void) : Virtintf::TInterface() { }
  242.     
  243. public:
  244.     /* TObject.Destroy */ __fastcall virtual ~TIResourceFile(void) { }
  245.     
  246. };
  247.  
  248. enum TNotifyCode { ncModuleDeleted, ncModuleRenamed, ncEditorModified, ncFormModified, ncEditorSelected, 
  249.     ncFormSelected, ncBeforeSave, ncAfterSave, ncFormSaving, ncProjResModified };
  250.  
  251. class DELPHICLASS TIModuleNotifier;
  252. class PASCALIMPLEMENTATION TIModuleNotifier : public Virtintf::TInterface 
  253. {
  254.     typedef Virtintf::TInterface inherited;
  255.     
  256. public:
  257.     virtual void __stdcall Notify(TNotifyCode NotifyCode) = 0;
  258.     virtual void __stdcall ComponentRenamed(void * ComponentHandle, const System::AnsiString OldName, const 
  259.         System::AnsiString NewName) = 0;
  260. public:
  261.     /* TInterface.Create */ __fastcall TIModuleNotifier(void) : Virtintf::TInterface() { }
  262.     
  263. public:
  264.     /* TObject.Destroy */ __fastcall virtual ~TIModuleNotifier(void) { }
  265.     
  266. };
  267.  
  268. class DELPHICLASS TIModuleInterface;
  269. class PASCALIMPLEMENTATION TIModuleInterface : public Virtintf::TInterface 
  270. {
  271.     typedef Virtintf::TInterface inherited;
  272.     
  273. public:
  274.     virtual TIEditorInterface* __stdcall GetEditorInterface(void) = 0;
  275.     virtual TIFormInterface* __stdcall GetFormInterface(void) = 0;
  276.     virtual TIModuleInterface* __stdcall GetAncestorModule(void) = 0;
  277.     virtual TIResourceFile* __stdcall GetProjectResource(void) = 0;
  278.     virtual bool __stdcall IsProjectModule(void) = 0;
  279.     virtual bool __stdcall Close(void) = 0;
  280.     virtual bool __stdcall Save(bool ForceSave) = 0;
  281.     virtual bool __stdcall Rename(const System::AnsiString NewName) = 0;
  282.     virtual bool __stdcall GetFileSystem(System::AnsiString &FileSystem) = 0;
  283.     virtual bool __stdcall SetFileSystem(const System::AnsiString FileSystem) = 0;
  284.     virtual bool __stdcall ShowSource(void) = 0;
  285.     virtual bool __stdcall ShowForm(void) = 0;
  286.     virtual bool __stdcall AddNotifier(TIModuleNotifier* AModuleNotifier) = 0;
  287.     virtual bool __stdcall RemoveNotifier(TIModuleNotifier* AModuleNotifier) = 0;
  288.     virtual TIEditorInterface* __stdcall GetAuxEditorInterface(void) = 0;
  289. public:
  290.     /* TInterface.Create */ __fastcall TIModuleInterface(void) : Virtintf::TInterface() { }
  291.     
  292. public:
  293.     /* TObject.Destroy */ __fastcall virtual ~TIModuleInterface(void) { }
  294.     
  295. };
  296.  
  297. class DELPHICLASS TIProjectCreator;
  298. class PASCALIMPLEMENTATION TIProjectCreator : public Virtintf::TInterface 
  299. {
  300.     typedef Virtintf::TInterface inherited;
  301.     
  302. public:
  303.     virtual bool __stdcall Existing(void) = 0;
  304.     virtual System::AnsiString __stdcall GetFileName(void) = 0;
  305.     virtual System::AnsiString __stdcall GetFileSystem(void) = 0;
  306.     virtual System::AnsiString __stdcall NewProjectSource(const System::AnsiString ProjectName) = 0;
  307.     virtual void __stdcall NewDefaultModule(void) = 0;
  308.     virtual void __stdcall NewProjectResource(TIModuleInterface* Module) = 0;
  309. public:
  310.     /* TInterface.Create */ __fastcall TIProjectCreator(void) : Virtintf::TInterface() { }
  311.     
  312. public:
  313.     /* TObject.Destroy */ __fastcall virtual ~TIProjectCreator(void) { }
  314.     
  315. };
  316.  
  317. class DELPHICLASS TIProjectCreatorEx;
  318. class PASCALIMPLEMENTATION TIProjectCreatorEx : public Editintf::TIProjectCreator 
  319. {
  320.     typedef Editintf::TIProjectCreator inherited;
  321.     
  322. public:
  323.     virtual System::AnsiString __stdcall GetOptionName(void) = 0;
  324.     virtual System::AnsiString __stdcall NewOptionSource(const System::AnsiString ProjectName) = 0;
  325. public:
  326.         
  327.     /* TInterface.Create */ __fastcall TIProjectCreatorEx(void) : Editintf::TIProjectCreator() { }
  328.     
  329. public:
  330.     /* TObject.Destroy */ __fastcall virtual ~TIProjectCreatorEx(void) { }
  331.     
  332. };
  333.  
  334. class DELPHICLASS TIModuleCreator;
  335. class PASCALIMPLEMENTATION TIModuleCreator : public Virtintf::TInterface 
  336. {
  337.     typedef Virtintf::TInterface inherited;
  338.     
  339. public:
  340.     virtual bool __stdcall Existing(void) = 0;
  341.     virtual System::AnsiString __stdcall GetAncestorName(void) = 0;
  342.     virtual System::AnsiString __stdcall GetFileName(void) = 0;
  343.     virtual System::AnsiString __stdcall GetFileSystem(void) = 0;
  344.     virtual System::AnsiString __stdcall GetFormName(void) = 0;
  345.     virtual System::AnsiString __stdcall NewModuleSource(const System::AnsiString UnitIdent, const System::AnsiString 
  346.         FormIdent, const System::AnsiString AncestorIdent) = 0;
  347.     virtual void __stdcall FormCreated(TIFormInterface* Form) = 0;
  348. public:
  349.     /* TInterface.Create */ __fastcall TIModuleCreator(void) : Virtintf::TInterface() { }
  350.     
  351. public:
  352.     /* TObject.Destroy */ __fastcall virtual ~TIModuleCreator(void) { }
  353.     
  354. };
  355.  
  356. class DELPHICLASS TIModuleCreatorEx;
  357. class PASCALIMPLEMENTATION TIModuleCreatorEx : public Editintf::TIModuleCreator 
  358. {
  359.     typedef Editintf::TIModuleCreator inherited;
  360.     
  361. public:
  362.     virtual System::AnsiString __stdcall GetIntfName(void) = 0;
  363.     virtual System::AnsiString __stdcall NewIntfSource(const System::AnsiString UnitIdent, const System::AnsiString 
  364.         FormIdent, const System::AnsiString AncestorIdent) = 0;
  365. public:
  366.     /* TInterface.Create */ __fastcall TIModuleCreatorEx(void) : Editintf::TIModuleCreator() { }
  367.     
  368. public:
  369.     /* TObject.Destroy */ __fastcall virtual ~TIModuleCreatorEx(void) { }
  370.     
  371. };
  372.  
  373. //-- var, const, procedure ---------------------------------------------------
  374. #define cursorPos (int)(0)
  375. #define ViewTopPos (int)(1)
  376. #define atWhiteSpace (Byte)(0)
  377. #define atComment (Byte)(1)
  378. #define atReservedWord (Byte)(2)
  379. #define atIdentifier (Byte)(3)
  380. #define atSymbol (Byte)(4)
  381. #define atString (Byte)(5)
  382. #define atNumber (Byte)(6)
  383. #define atFloat (Byte)(7)
  384. #define atOctal (Byte)(8)
  385. #define atHex (Byte)(9)
  386. #define atCharacter (Byte)(10)
  387. #define atPreproc (Byte)(11)
  388. #define atIllegal (Byte)(12)
  389. #define atAssembler (Byte)(13)
  390. #define SyntaxOff (Byte)(14)
  391. #define MarkedBlock (Byte)(15)
  392. #define SearchMatch (Byte)(16)
  393. #define lfCurrentCSIP (Byte)(1)
  394. #define lfBreakpointEnabled (Byte)(2)
  395. #define lfBreakpointDisabled (Byte)(4)
  396. #define lfBreakpointInvalid (Byte)(8)
  397. #define lfErrorLine (Byte)(16)
  398. #define lfBreakpointVerified (Byte)(32)
  399.  
  400. }    /* namespace Editintf */
  401. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  402. using namespace Editintf;
  403. #endif
  404. //-- end unit ----------------------------------------------------------------
  405. #endif    // EditIntf
  406.